package com.hps.poet.controller;


import com.hps.poet.po.PoemSearch;
import com.hps.poet.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SearchController {

    @Autowired
    private SearchService searchService;

    @GetMapping("/poemSearchList")
    public List<PoemSearch> poemSearchList() {
        return searchService.createPoem();
    }


}
